package com.aaa.d01;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/10/25  9:58
 */
public class Point {
    //该类中两个属性的数据类型-----
    //Object是所有类的父类，多态
    private Object X;
    private Object y;

    public Point(Object x, Object y) {
        X = x;
        this.y = y;
    }

    @Override
    public String toString() {
        return "Point{" +
                "X=" + X +
                ", y=" + y +
                '}';
    }

    public Object getX() {
        return X;
    }

    public void setX(Object x) {
        X = x;
    }

    public Object getY() {
        return y;
    }

    public void setY(Object y) {
        this.y = y;
    }
}
